export const maritalStatusOptions = [
  { label: '未婚', value: 1 },
  { label: '已婚', value: 2 },
  { label: '离婚', value: 3 },
  { label: '丧偶', value: 4 },
];

export const genderOptions = [
  { label: '未知', value: 0 },
  { label: '男', value: 1 },
  { label: '女', value: 2 },
];

export const politicalStatusOptions = [
  { label: '群众', value: '1' },
  { label: '共青团员', value: '2' },
  { label: '中共预备党员', value: '3' },
  { label: '中共党员', value: '4' },
  { label: '民革党员', value: '5' },
  { label: '民盟盟员', value: '6' },
  { label: '民建会员', value: '7' },
  { label: '民进会员', value: '8' },
  { label: '农工党党员', value: '9' },
  { label: '致公党党员', value: '10' },
  { label: '九三学社社员', value: '11' },
  { label: '台盟盟员', value: '12' },
  { label: '无党派人士', value: '13' },
];

export const educationLevelOptions = [
  { label: '未知', value: '0' },
  { label: '小学', value: '1' },
  { label: '初中', value: '2' },
  { label: '高中', value: '3' },
  { label: '中专', value: '4' },
  { label: '大专', value: '5' },
  { label: '本科', value: '6' },
  { label: '硕士研究生', value: '7' },
  { label: '博士研究生', value: '8' },
];

export const disabilityLevelOptions = [
  { label: '视力残疾', value: '1' },
  { label: '听力残疾', value: '2' },
  { label: '肢体残疾', value: '3' },
  { label: '智力、精神残疾', value: '4' },
  { label: '言语残疾', value: '5' },
  { label: '多重残疾', value: '6' },
];

export const disabilityDegreeOptions = [
  { label: '一级', value: '1' },
  { label: '二级', value: '2' },
  { label: '三级', value: '3' },
  { label: '四级', value: '4' },
];

export function getMaritalStatusName(status: number) {
  return maritalStatusOptions.find((item) => item.value === status)?.label;
}

export function getGenderName(gender: number) {
  return genderOptions.find((item) => item.value === gender)?.label;
}

export function getdisabilityLevelName(level: string) {
  return disabilityLevelOptions.find((item) => item.value === level)?.label;
}

export function getDisabilityDegreeName(degree: string) {
  return disabilityDegreeOptions.find((item) => item.value === degree)?.label;
}
